package com.yuchting.dinneronline.server;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.IdentityType;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

@PersistenceCapable(identityType = IdentityType.APPLICATION)
public class Comment {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	public Long m_time = System.currentTimeMillis();
	
	@Persistent
	public final String m_commnetDinner;
	
	@Persistent
	public final long m_commnetOrderTime;
	
	@Persistent
	public final String m_commnetUser;
	
	@Persistent
	public final String m_commentText;
	
	@Persistent
	public final byte[] m_commentRank;	
	
	
	public Comment(String _dinner,	long _orderTime,
					String _user,String _commnet,
					byte[] _commentRank){
		m_commnetDinner = _dinner;
		m_commnetOrderTime = _orderTime;
		m_commnetUser	= _user;
		m_commentText	= _commnet;
		m_commentRank	= _commentRank;
	}	
}
